#ifndef OPDIR_H
#define OPDIR_H

#include "myHeader.h"

//#include <stdio.h>
//#include <string.h>
//
//// getcwd chdir rmdir access
//#include <unistd.h>
//
//// chmod 改变文件权限  int stat(const char *path, struct stat *buf);
//#include <sys/stat.h>
//
//// mkdir <stat>
//#include <sys/types.h>
//
//// DIR* opendir closedir  <types>
//// struct dirent *readdir   telldir seekdir rewinddir 
//#include <dirent.h>

//int cdDir(const char *srcDir, const char *srcPath, char *destDir);
//int lsDir(const char *srcDir, char content[][1024], int *num, char *destDir);
//int pwdDir(const char *srcDir, char *destDir);
//int mkDir(const char *srcDir, const char *newDir, char *destDir);
//int rmDir(const char *srcDir, const char *delDir, char *destDir);

int cdDir(int netfd, const char *srcDir, const char *inDir);
int lsDir(int netfd, const char *srcDir);
int pwdDir(int netfd, const char *srcDir);
int mkDir(int netfd, const char *srcDir, const char *newDir);
int rmDir(int netfd, const char *srcDir, const char *delDir);
int rmFile(int netfd, const char *srcDir, const char *delFile);


#endif

